/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.scheduler;

import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Value;
import com.cmcc.zysoft.infocollection.service.ResourcePcService;
import com.cmcc.zysoft.infocollection.thread.QueryJobThread;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: TaskScheduler.java 计划任务调度程序.
 * <br />版本: 1.0.0
 * <br />日期: 2013-8-26 上午9:22:57
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Component
public class TaskScheduler {
	
	/**
	 * 日志.
	 */
	private static Logger logger = LoggerFactory.getLogger(TaskScheduler.class);
	
	/**
	 * 信息查询接口URL前缀.
	 */
	@Value("${info.query.url.prefix}")
	private String infoQueryUrlPrefix;
	
	/**
	 * 属性名称: resourcePcService.
	 * 类       型: ResourcePcService.
	 */
	@Resource
	private ResourcePcService resourcePcService;
	
	/**
	 * 启动信息查询定时任务.
	 */
	public void query() {
		logger.debug("#########  信息查询定时任务开始! 开始时间: {} #########", new Date());
		/*QueryJobThread queryJobThread = new QueryJobThread(resourcePcService, infoQueryUrlPrefix);
		Thread thread = new Thread(queryJobThread);
		//启动查询线程
		thread.start();*/
		logger.debug("#########  信息查询定时任务结束! 结束时间: {} #########", new Date());
	}
}